<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libevent-2.1.11
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;17.&nbsp;Networking Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="ldns.html" title="ldns-1.7.1">Prev</a>
          <p>
            ldns-1.7.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libmnl.html" title="libmnl-1.0.4">Next</a>
          <p>
            libmnl-1.0.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libevent" name="libevent"></a>libevent-2.1.11
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libevent
        </h2>
        <p>
          <span class="application">libevent</span> is an asynchronous event
          notification software library. The <span class=
          "application">libevent</span> API provides a mechanism to execute a
          callback function when a specific event occurs on a file descriptor
          or after a timeout has been reached. Furthermore, <span class=
          "application">libevent</span> also supports callbacks due to
          signals or regular timeouts.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz">
                https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 7f35cfe69b82d879111ec0d7b7b1c531
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.0 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 20 MB (add 4 MB for tests and
                4 MB for API docs)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU (add 11 SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          libevent Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/doxygen.html" title=
          "Doxygen-1.8.17">Doxygen-1.8.17</a> (for API documentation)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libevent">http://wiki.linuxfromscratch.org/blfs/wiki/libevent</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libevent
        </h2>
        <p>
          Install <span class="application">libevent</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --disable-static &amp;&amp;
make</kbd>
</pre>
        <p>
          If you have <a class="xref" href="../general/doxygen.html" title=
          "Doxygen-1.8.17">Doxygen-1.8.17</a> installed and wish to build API
          documentation, issue :
        </p>
        <pre class="userinput">
<kbd class="command">doxygen Doxyfile</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          verify</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <p>
          If you built the API documentation, install it by issuing the
          following commands as the <code class="systemitem">root</code>
          user:
        </p>
        <pre class="root">
<kbd class=
"command">install -v -m755 -d /usr/share/doc/libevent-2.1.11/api &amp;&amp;
cp      -v -R       doxygen/html/* \
                    /usr/share/doc/libevent-2.1.11/api</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">event_rpcgen.py</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libevent_core.so, libevent_extra.so,
              libevent_openssl.so, libevent_pthreads.so and
              libevent.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/include/event2 and
              /usr/share/doc/libevent-2.1.11</span>
            </div>
          </div>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 17:15:05 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="ldns.html" title="ldns-1.7.1">Prev</a>
          <p>
            ldns-1.7.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libmnl.html" title="libmnl-1.0.4">Next</a>
          <p>
            libmnl-1.0.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
